﻿using System.Drawing;
using System.Runtime.InteropServices;

namespace Microsoft.Goldenlight.Diablo.AnimationLoader
{
    [StructLayout(LayoutKind.Sequential)]
    public class ColorEntry
    {
        public byte Red;

        public byte Green;

        public byte Blue;

        public byte Alpha;

        public Color PixelColor
        {
            get
            {
                return Color.FromArgb(Red, Green, Blue);
            }
        }
    }
}